import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/modules/user.js'
import address from '@/store/modules/address.js'
import goods from '@/store/modules/goods.js'
import cart from '@/store/modules/cart.js'
import order from '@/store/modules/order.js'

Vue.use(Vuex);//vue的插件机制

//Vuex.Store 构造器选项
const store = new Vuex.Store({
	modules:{
		user,
		address,
		goods,
		cart,
		order
	}
})
export default store